<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="A complete example of Cropper.">
    <meta name="keywords" content="HTML, CSS, JS, JavaScript, jQuery, PHP, image cropping, web development">
    <meta name="author" content="Fengyuan Chen">
    <title>测试页面</title>
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/fw/static/bootstrap/css/bootstrap.min.css">
    <!--cropper-->
    <link rel="stylesheet" href="/fw/static/cropper/css/cropper.min.css">
    <link rel="stylesheet" href="/fw/static/cropper/css/main.css">
</head>
<body>
<div class="container" id="crop-avatar">

    <!-- Current avatar -->
    <div class="avatar-view" title="Change the avatar">
        <img src="" alt="Avatar">
    </div>

    <!-- Cropping modal -->
    <div class="modal fade" id="avatar-modal" aria-hidden="true" aria-labelledby="avatar-modal-label" role="dialog"
         tabindex="-1">
        <div class="modal-dialog modal-lg">
            <div class="modal-content">
                <form class="avatar-form" action="/fw/user/uploadHeadImg" enctype="multipart/form-data" method="post">
                    <div class="modal-header">
                        <button class="close" data-dismiss="modal" type="button">&times;</button>
                        <h4 class="modal-title" id="avatar-modal-label">Change Avatar</h4>
                    </div>
                    <div class="modal-body">
                        <div class="avatar-body">

                            <!-- Upload image and data -->
                            <div class="avatar-upload">
                                <input class="avatar-src" name="avatar_src" type="hidden">
                                <input class="avatar-data" name="avatar_data" type="hidden">
                                <label for="avatarInput">Local upload</label>
                                <input class="avatar-input" id="avatarInput" name="avatar_file" type="file">
                            </div>

                            <!-- Crop and preview -->
                            <div class="row">
                                <div class="col-md-9">
                                    <div class="avatar-wrapper"></div>
                                </div>
                                <div class="col-md-3">
                                    <div class="avatar-preview preview-lg"></div>
                                    <div class="avatar-preview preview-md"></div>
                                    <div class="avatar-preview preview-sm"></div>
                                </div>
                            </div>

                            <div class="row avatar-btns">
                                <div class="col-md-9">
                                    <div class="btn-group">
                                        <button class="btn btn-primary" data-method="rotate" data-option="-90"
                                                type="button" title="Rotate -90 degrees">Rotate Left
                                        </button>
                                        <button class="btn btn-primary" data-method="rotate" data-option="-15"
                                                type="button">-15deg
                                        </button>
                                        <button class="btn btn-primary" data-method="rotate" data-option="-30"
                                                type="button">-30deg
                                        </button>
                                        <button class="btn btn-primary" data-method="rotate" data-option="-45"
                                                type="button">-45deg
                                        </button>
                                    </div>
                                    <div class="btn-group">
                                        <button class="btn btn-primary" data-method="rotate" data-option="90"
                                                type="button" title="Rotate 90 degrees">Rotate Right
                                        </button>
                                        <button class="btn btn-primary" data-method="rotate" data-option="15"
                                                type="button">15deg
                                        </button>
                                        <button class="btn btn-primary" data-method="rotate" data-option="30"
                                                type="button">30deg
                                        </button>
                                        <button class="btn btn-primary" data-method="rotate" data-option="45"
                                                type="button">45deg
                                        </button>
                                    </div>
                                </div>
                                <div class="col-md-3">
                                    <button class="btn btn-primary btn-block avatar-save" type="submit">Done</button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button class="btn btn-default" data-dismiss="modal" type="button">Close</button>
                    </div>
                </form>
            </div>
        </div>
    </div><!-- /.modal -->

    <!-- Loading state -->
    <div class="loading" aria-label="Loading" role="img" tabindex="-1"></div>
</div>

<!-- jQuery 2.2.3 -->
<script src="/fw/static/Jquery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="/fw/static/bootstrap/js/bootstrap.min.js"></script>
<!-- cropper -->
<script src="/fw/static/cropper/js/cropper.min.js"></script>
<script src="/fw/static/cropper/js/main.js"></script>
<script>
    window.onload = $(function () {
        console.log("手下留情啊!!!大兄弟. 这里啥都没有");
    })
</script>
</body>
</html>
